<% form_remote_tag :url => {:action=> "update", :id => params[:id]} do %>

<% @cat1 = Category.find(params[:id])%>
    <table>
        <tr>
            <td>
                Name 
            </td>
            <td>
                <%= text_field_tag :name, @cat1.name, :size => 45 %>
            </td>
        </tr>
        <tr>
            <td valign="top">
                Description
            </td>
            <td>
                <%= text_area_tag :description, @cat1.description, :size => '44x6' %>    
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align:right">            
                <%= submit_tag "Save", :class => "submit", :id => params[:id] %>
            </td>
        </tr>
    </table>
<% end %>

<script type="text/javascript">
    $("#name").focus();
</script>
